package ddd;

import ddd.constant.WeaponEnum;

/**
 * @author dengzhiyuan
 * @version 1.0
 * @time 2021/5/24 15:46
 */
public class Weapon {
    private Weapon id;
    private String name;
    private WeaponEnum weaponType;
    /**
     * 攻击伤害
     */
    private int damage;
    private int damageType; // 0 - physical, 1 - fire, 2 - ice

    public Weapon(String name, WeaponEnum weaponType, int damageType,int damage) {
        this.name = name;
        this.weaponType = weaponType;
        this.damageType = damageType;
        this.damage = damage;
    }

    public Weapon getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public WeaponEnum getWeaponType() {
        return weaponType;
    }

    public int getDamage() {
        return damage;
    }

    public int getDamageType() {
        return damageType;
    }
}
